<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: src/uv_tcp_c.cpp 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">uv_tcp_c.cpp 文件参考</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;regex&gt;</code><br />
<code>#include &lt;thread&gt;</code><br />
<code>#include &lt;atomic&gt;</code><br />
<code>#include &lt;chrono&gt;</code><br />
<code>#include &quot;<a class="el" href="../../d5/d16/tcpbase_8hpp_source.html">tcpbase.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../dc/d4b/uvlper_8hpp_source.html">uvlper.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../dc/da6/resolver_8hpp_source.html">resolver.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../d0/d0e/misc_8hpp_source.html">misc.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="../../df/d05/timer_8hpp_source.html">timer.hpp</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
uv_tcp_c.cpp 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../da/d65/uv__tcp__c_8cpp__incl.png" border="0" usemap="#asrc_2uv__tcp__c_8cpp" alt=""/></div>
<map name="asrc_2uv__tcp__c_8cpp" id="asrc_2uv__tcp__c_8cpp">
<area shape="rect" title=" " alt="" coords="817,5,938,32"/>
<area shape="rect" title=" " alt="" coords="440,80,508,107"/>
<area shape="poly" title=" " alt="" coords="817,31,686,52,523,82,522,77,685,46,816,26"/>
<area shape="rect" title=" " alt="" coords="531,80,584,107"/>
<area shape="poly" title=" " alt="" coords="817,35,604,83,600,83,599,78,603,77,816,30"/>
<area shape="rect" title=" " alt="" coords="1597,229,1654,256"/>
<area shape="poly" title=" " alt="" coords="938,30,1132,77,1389,157,1583,223,1581,228,1387,162,1130,83,936,35"/>
<area shape="rect" title=" " alt="" coords="930,304,991,331"/>
<area shape="poly" title=" " alt="" coords="896,30,948,80,976,115,998,154,1008,181,1012,205,1010,228,1003,257,984,293,979,290,998,255,1005,227,1007,205,1003,183,993,156,971,117,944,83,892,34"/>
<area shape="rect" title=" " alt="" coords="1418,80,1479,107"/>
<area shape="poly" title=" " alt="" coords="939,22,1144,42,1272,57,1400,77,1404,78,1403,83,1399,83,1271,63,1143,47,939,27"/>
<area shape="rect" href="../../d5/d16/tcpbase_8hpp.html" title=" " alt="" coords="790,80,883,107"/>
<area shape="poly" title=" " alt="" coords="873,34,853,68,849,65,868,31"/>
<area shape="rect" href="../../d0/d0e/misc_8hpp.html" title=" " alt="" coords="466,155,540,181"/>
<area shape="poly" title=" " alt="" coords="817,34,736,53,648,82,597,110,537,148,534,144,595,106,646,78,734,48,816,28"/>
<area shape="rect" href="../../dc/d4b/uvlper_8hpp.html" title=" " alt="" coords="877,155,958,181"/>
<area shape="poly" title=" " alt="" coords="884,32,898,79,914,139,908,141,893,81,879,33"/>
<area shape="rect" href="../../df/d05/timer_8hpp.html" title=" " alt="" coords="1268,155,1344,181"/>
<area shape="poly" title=" " alt="" coords="924,30,1080,77,1262,146,1260,151,1078,83,923,35"/>
<area shape="rect" href="../../dc/da6/resolver_8hpp.html" title=" " alt="" coords="660,80,752,107"/>
<area shape="poly" title=" " alt="" coords="849,35,751,76,749,71,847,30"/>
<area shape="poly" title=" " alt="" coords="884,100,933,118,955,133,973,153,987,188,988,225,983,260,974,290,969,289,978,259,983,224,981,189,969,156,952,137,930,122,882,105"/>
<area shape="rect" title=" " alt="" coords="826,229,871,256"/>
<area shape="poly" title=" " alt="" coords="840,107,849,214,844,214,835,107"/>
<area shape="rect" title=" " alt="" coords="639,304,692,331"/>
<area shape="poly" title=" " alt="" coords="822,109,772,156,720,228,682,292,677,289,715,225,768,153,819,105"/>
<area shape="rect" title=" " alt="" coords="606,453,683,480"/>
<area shape="poly" title=" " alt="" coords="837,108,805,258,779,346,765,382,751,407,725,431,696,449,693,444,722,427,746,404,760,379,774,344,800,256,832,106"/>
<area shape="poly" title=" " alt="" coords="790,107,556,157,555,151,789,101"/>
<area shape="poly" title=" " alt="" coords="852,105,894,142,891,146,849,109"/>
<area shape="poly" title=" " alt="" coords="884,99,1253,156,1253,161,883,104"/>
<area shape="poly" title=" " alt="" coords="506,181,512,217,519,237,530,254,546,266,569,278,626,300,624,305,567,283,543,270,527,258,514,239,507,218,501,182"/>
<area shape="poly" title=" " alt="" coords="503,182,501,217,504,236,511,255,535,284,560,300,591,311,628,328,658,340,685,345,709,355,731,377,736,398,726,417,709,434,688,448,685,443,706,430,722,414,730,398,726,380,706,359,683,350,657,345,626,333,589,316,558,305,531,288,506,257,498,238,496,217,498,181"/>
<area shape="rect" title=" " alt="" coords="158,379,230,405"/>
<area shape="poly" title=" " alt="" coords="466,179,411,194,346,218,280,255,251,279,225,306,209,334,201,364,196,362,205,332,221,302,247,275,277,251,344,214,410,189,465,174"/>
<area shape="rect" title=" " alt="" coords="541,229,598,256"/>
<area shape="poly" title=" " alt="" coords="517,180,550,216,546,220,513,184"/>
<area shape="rect" href="../../d8/d68/fs_8hpp.html" title=" " alt="" coords="357,229,414,256"/>
<area shape="poly" title=" " alt="" coords="484,184,420,223,418,219,481,180"/>
<area shape="poly" title=" " alt="" coords="415,249,625,303,623,308,414,254"/>
<area shape="poly" title=" " alt="" coords="416,250,463,269,488,284,510,302,530,328,538,353,546,377,563,404,585,425,610,443,607,447,582,429,558,407,541,379,533,354,525,331,507,306,485,288,461,274,414,255"/>
<area shape="rect" title=" " alt="" coords="236,304,315,331"/>
<area shape="poly" title=" " alt="" coords="368,259,308,298,306,293,365,254"/>
<area shape="rect" title=" " alt="" coords="339,304,403,331"/>
<area shape="poly" title=" " alt="" coords="386,257,379,289,374,288,381,256"/>
<area shape="rect" href="../../de/dfd/tree_8hpp.html" title=" " alt="" coords="428,304,496,331"/>
<area shape="poly" title=" " alt="" coords="401,255,440,291,436,295,397,258"/>
<area shape="poly" title=" " alt="" coords="438,333,414,348,393,366,382,385,382,394,387,404,399,414,419,424,472,440,533,451,591,458,590,463,532,456,471,445,417,429,396,419,382,407,377,396,377,384,389,362,411,344,435,329"/>
<area shape="poly" title=" " alt="" coords="428,331,245,380,244,374,427,325"/>
<area shape="rect" title=" " alt="" coords="1056,379,1124,405"/>
<area shape="poly" title=" " alt="" coords="497,320,1041,382,1040,388,496,325"/>
<area shape="rect" title=" " alt="" coords="253,379,321,405"/>
<area shape="poly" title=" " alt="" coords="432,334,333,375,331,370,430,329"/>
<area shape="rect" title=" " alt="" coords="679,379,717,405"/>
<area shape="poly" title=" " alt="" coords="497,325,665,375,663,380,496,330"/>
<area shape="rect" title=" " alt="" coords="573,379,655,405"/>
<area shape="poly" title=" " alt="" coords="489,329,575,369,572,374,487,334"/>
<area shape="rect" href="../../d6/de9/typetraits_8hpp.html" title=" " alt="" coords="397,379,497,405"/>
<area shape="poly" title=" " alt="" coords="462,332,455,364,450,363,457,331"/>
<area shape="poly" title=" " alt="" coords="482,403,596,445,595,450,481,408"/>
<area shape="poly" title=" " alt="" coords="923,181,943,255,954,289,949,290,938,257,918,182"/>
<area shape="poly" title=" " alt="" coords="908,184,873,220,869,216,904,180"/>
<area shape="rect" href="../../de/d6d/singleton_8hpp.html" title=" " alt="" coords="1014,304,1166,331"/>
<area shape="poly" title=" " alt="" coords="934,180,1065,292,1062,296,931,184"/>
<area shape="poly" title=" " alt="" coords="1092,331,1092,363,1087,363,1087,331"/>
<area shape="poly" title=" " alt="" coords="1014,332,670,381,670,376,1013,327"/>
<area shape="poly" title=" " alt="" coords="1344,175,1578,227,1583,228,1582,233,1577,232,1343,180"/>
<area shape="poly" title=" " alt="" coords="1305,183,1292,227,1266,290,1248,323,1226,355,1200,384,1170,408,1132,424,1080,438,949,455,811,464,699,468,699,462,811,459,949,450,1079,432,1130,419,1167,403,1197,380,1222,352,1244,320,1262,287,1287,226,1300,181"/>
<area shape="poly" title=" " alt="" coords="1344,176,1457,204,1529,227,1535,243,1529,258,1503,281,1463,303,1412,322,1356,339,1238,367,1140,386,1139,380,1237,362,1354,334,1411,317,1460,298,1500,277,1525,254,1530,243,1525,231,1456,209,1343,181"/>
<area shape="poly" title=" " alt="" coords="1345,177,1430,203,1466,216,1485,228,1491,243,1485,258,1470,270,1444,281,1367,303,1264,323,1145,342,905,372,733,390,732,385,904,367,1144,337,1263,318,1366,298,1442,276,1467,265,1481,254,1486,243,1481,231,1464,221,1428,208,1343,182"/>
<area shape="poly" title=" " alt="" coords="1300,183,1272,219,1231,258,1190,283,1148,301,1145,296,1188,278,1228,254,1268,216,1296,180"/>
<area shape="rect" title=" " alt="" coords="1425,229,1472,256"/>
<area shape="poly" title=" " alt="" coords="1332,179,1413,220,1410,225,1329,184"/>
<area shape="rect" title=" " alt="" coords="1344,229,1401,256"/>
<area shape="poly" title=" " alt="" coords="1319,180,1353,216,1349,220,1315,184"/>
<area shape="rect" href="../../db/d24/itimer_8hpp.html" title=" " alt="" coords="1098,229,1218,256"/>
<area shape="poly" title=" " alt="" coords="1281,184,1199,224,1196,220,1279,179"/>
<area shape="poly" title=" " alt="" coords="1124,259,1006,302,1004,297,1123,254"/>
<area shape="poly" title=" " alt="" coords="1097,256,708,313,707,307,1097,250"/>
<area shape="poly" title=" " alt="" coords="1166,256,1180,304,1183,336,1178,363,1163,387,1138,408,1103,424,1055,437,934,455,805,464,699,467,699,462,805,459,933,449,1054,432,1101,419,1135,403,1159,383,1173,361,1178,336,1175,304,1161,257"/>
<area shape="poly" title=" " alt="" coords="706,108,673,289,668,288,701,107"/>
<area shape="poly" title=" " alt="" coords="660,104,517,127,339,161,255,181,186,201,139,223,127,232,123,242,123,319,124,367,131,385,148,403,180,422,228,436,285,447,350,454,482,462,590,463,590,469,481,467,349,460,285,452,226,441,178,426,144,407,127,388,119,368,118,319,118,241,123,229,137,218,184,196,254,175,337,156,516,121,659,99"/>
<area shape="poly" title=" " alt="" coords="744,105,867,147,865,152,742,110"/>
<area shape="rect" title=" " alt="" coords="5,155,84,181"/>
<area shape="poly" title=" " alt="" coords="659,103,597,109,349,129,241,139,102,157,99,158,98,153,101,152,240,134,348,124,596,104,659,97"/>
<area shape="rect" href="../../d3/df7/ary__str_8hpp.html" title=" " alt="" coords="564,155,650,181"/>
<area shape="poly" title=" " alt="" coords="690,109,638,148,635,143,687,105"/>
<area shape="poly" title=" " alt="" coords="615,181,658,288,653,290,610,183"/>
<area shape="poly" title=" " alt="" coords="603,183,586,217,581,214,598,181"/>
</map>
</div>
</div>
<p><a href="../../d6/d9a/uv__tcp__c_8cpp_source.html">浏览该文件的源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:af0ab6a729b5504f44da7afda04e8ca72" id="r_af0ab6a729b5504f44da7afda04e8ca72"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af0ab6a729b5504f44da7afda04e8ca72">StartRebootTimer</a> ()</td></tr>
<tr class="separator:af0ab6a729b5504f44da7afda04e8ca72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46dab202c98d614f23ca7d8ab95e3f76" id="r_a46dab202c98d614f23ca7d8ab95e3f76"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a46dab202c98d614f23ca7d8ab95e3f76">do_tcp_on_alloc_buff</a> (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)</td></tr>
<tr class="separator:a46dab202c98d614f23ca7d8ab95e3f76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab582a245cdc03170a2139958f00a858b" id="r_ab582a245cdc03170a2139958f00a858b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab582a245cdc03170a2139958f00a858b">do_on_recv</a> (uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf)</td></tr>
<tr class="separator:ab582a245cdc03170a2139958f00a858b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab394e4db7437ecfe63861efe5c8be24a" id="r_ab394e4db7437ecfe63861efe5c8be24a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab394e4db7437ecfe63861efe5c8be24a">on_tcp_connect</a> (uv_connect_t *handle, int status)</td></tr>
<tr class="separator:ab394e4db7437ecfe63861efe5c8be24a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26cdfb66bef995e16bf2a18b2ae67717" id="r_a26cdfb66bef995e16bf2a18b2ae67717"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a26cdfb66bef995e16bf2a18b2ae67717">on_write_cb</a> (uv_write_t *req, int status)</td></tr>
<tr class="separator:a26cdfb66bef995e16bf2a18b2ae67717"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8bf4cc413efef9934f6b58168d456fe" id="r_ad8bf4cc413efef9934f6b58168d456fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad8bf4cc413efef9934f6b58168d456fe">libuv_shutdown_cb</a> (uv_shutdown_t *req, int status)</td></tr>
<tr class="separator:ad8bf4cc413efef9934f6b58168d456fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41d289fd0817e859b813822d4f9f940c" id="r_a41d289fd0817e859b813822d4f9f940c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a41d289fd0817e859b813822d4f9f940c">on_uv_close</a> (uv_handle_t *h)</td></tr>
<tr class="memdesc:a41d289fd0817e859b813822d4f9f940c"><td class="mdescLeft">&#160;</td><td class="mdescRight">响应uv_close操作的回调函数。  <br /></td></tr>
<tr class="separator:a41d289fd0817e859b813822d4f9f940c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="ab582a245cdc03170a2139958f00a858b" name="ab582a245cdc03170a2139958f00a858b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab582a245cdc03170a2139958f00a858b">&#9670;&#160;</a></span>do_on_recv()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void do_on_recv </td>
          <td>(</td>
          <td class="paramtype">uv_stream_t *</td>          <td class="paramname"><span class="paramname"><em>stream</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ssize_t</td>          <td class="paramname"><span class="paramname"><em>nread</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uv_buf_t *</td>          <td class="paramname"><span class="paramname"><em>buf</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d6/d9a/uv__tcp__c_8cpp_source.html">uv_tcp_c.cpp</a> 第 <a class="el" href="../../d6/d9a/uv__tcp__c_8cpp_source.html#l00033">33</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d9a/uv__tcp__c_8cpp_ab582a245cdc03170a2139958f00a858b_cgraph.png" border="0" usemap="#ad6/d9a/uv__tcp__c_8cpp_ab582a245cdc03170a2139958f00a858b_cgraph" alt=""/></div>
<map name="ad6/d9a/uv__tcp__c_8cpp_ab582a245cdc03170a2139958f00a858b_cgraph" id="ad6/d9a/uv__tcp__c_8cpp_ab582a245cdc03170a2139958f00a858b_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,94,32"/>
<area shape="rect" href="../../db/d6e/class_c_u_v_client.html#a85c74bb0d72542e0a710ac1f10e2640b" title="处理libuv的错误" alt="" coords="142,5,276,32"/>
<area shape="poly" title=" " alt="" coords="94,16,126,16,126,21,94,21"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d9a/uv__tcp__c_8cpp_ab582a245cdc03170a2139958f00a858b_icgraph.png" border="0" usemap="#ad6/d9a/uv__tcp__c_8cpp_ab582a245cdc03170a2139958f00a858b_icgraph" alt=""/></div>
<map name="ad6/d9a/uv__tcp__c_8cpp_ab582a245cdc03170a2139958f00a858b_icgraph" id="ad6/d9a/uv__tcp__c_8cpp_ab582a245cdc03170a2139958f00a858b_icgraph">
<area shape="rect" title=" " alt="" coords="167,5,255,32"/>
<area shape="rect" href="../../d6/d9a/uv__tcp__c_8cpp.html#ab394e4db7437ecfe63861efe5c8be24a" title=" " alt="" coords="5,5,119,32"/>
<area shape="poly" title=" " alt="" coords="151,21,119,21,119,16,151,16"/>
</map>
</div>

</div>
</div>
<a id="a46dab202c98d614f23ca7d8ab95e3f76" name="a46dab202c98d614f23ca7d8ab95e3f76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46dab202c98d614f23ca7d8ab95e3f76">&#9670;&#160;</a></span>do_tcp_on_alloc_buff()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void do_tcp_on_alloc_buff </td>
          <td>(</td>
          <td class="paramtype">uv_handle_t *</td>          <td class="paramname"><span class="paramname"><em>handle</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>suggested_size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uv_buf_t *</td>          <td class="paramname"><span class="paramname"><em>buf</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d6/d9a/uv__tcp__c_8cpp_source.html">uv_tcp_c.cpp</a> 第 <a class="el" href="../../d6/d9a/uv__tcp__c_8cpp_source.html#l00023">23</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d9a/uv__tcp__c_8cpp_a46dab202c98d614f23ca7d8ab95e3f76_icgraph.png" border="0" usemap="#ad6/d9a/uv__tcp__c_8cpp_a46dab202c98d614f23ca7d8ab95e3f76_icgraph" alt=""/></div>
<map name="ad6/d9a/uv__tcp__c_8cpp_a46dab202c98d614f23ca7d8ab95e3f76_icgraph" id="ad6/d9a/uv__tcp__c_8cpp_a46dab202c98d614f23ca7d8ab95e3f76_icgraph">
<area shape="rect" title=" " alt="" coords="167,5,310,32"/>
<area shape="rect" href="../../d6/d9a/uv__tcp__c_8cpp.html#ab394e4db7437ecfe63861efe5c8be24a" title=" " alt="" coords="5,5,119,32"/>
<area shape="poly" title=" " alt="" coords="151,21,119,21,119,16,151,16"/>
</map>
</div>

</div>
</div>
<a id="ad8bf4cc413efef9934f6b58168d456fe" name="ad8bf4cc413efef9934f6b58168d456fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8bf4cc413efef9934f6b58168d456fe">&#9670;&#160;</a></span>libuv_shutdown_cb()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libuv_shutdown_cb </td>
          <td>(</td>
          <td class="paramtype">uv_shutdown_t *</td>          <td class="paramname"><span class="paramname"><em>req</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>status</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d6/d9a/uv__tcp__c_8cpp_source.html">uv_tcp_c.cpp</a> 第 <a class="el" href="../../d6/d9a/uv__tcp__c_8cpp_source.html#l00092">92</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d9a/uv__tcp__c_8cpp_ad8bf4cc413efef9934f6b58168d456fe_cgraph.png" border="0" usemap="#ad6/d9a/uv__tcp__c_8cpp_ad8bf4cc413efef9934f6b58168d456fe_cgraph" alt=""/></div>
<map name="ad6/d9a/uv__tcp__c_8cpp_ad8bf4cc413efef9934f6b58168d456fe_cgraph" id="ad6/d9a/uv__tcp__c_8cpp_ad8bf4cc413efef9934f6b58168d456fe_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,138,32"/>
<area shape="rect" href="../../db/d6e/class_c_u_v_client.html#ad88a2b7043d30c8cc6bd6541a9bae8f4" title="处理shutdown事件" alt="" coords="186,5,350,32"/>
<area shape="poly" title=" " alt="" coords="138,16,170,16,170,21,138,21"/>
</map>
</div>

</div>
</div>
<a id="ab394e4db7437ecfe63861efe5c8be24a" name="ab394e4db7437ecfe63861efe5c8be24a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab394e4db7437ecfe63861efe5c8be24a">&#9670;&#160;</a></span>on_tcp_connect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void on_tcp_connect </td>
          <td>(</td>
          <td class="paramtype">uv_connect_t *</td>          <td class="paramname"><span class="paramname"><em>handle</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>status</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d6/d9a/uv__tcp__c_8cpp_source.html">uv_tcp_c.cpp</a> 第 <a class="el" href="../../d6/d9a/uv__tcp__c_8cpp_source.html#l00046">46</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d9a/uv__tcp__c_8cpp_ab394e4db7437ecfe63861efe5c8be24a_cgraph.png" border="0" usemap="#ad6/d9a/uv__tcp__c_8cpp_ab394e4db7437ecfe63861efe5c8be24a_cgraph" alt=""/></div>
<map name="ad6/d9a/uv__tcp__c_8cpp_ab394e4db7437ecfe63861efe5c8be24a_cgraph" id="ad6/d9a/uv__tcp__c_8cpp_ab394e4db7437ecfe63861efe5c8be24a_cgraph">
<area shape="rect" title=" " alt="" coords="5,56,119,83"/>
<area shape="rect" href="../../d6/d9a/uv__tcp__c_8cpp.html#ab582a245cdc03170a2139958f00a858b" title=" " alt="" coords="209,5,297,32"/>
<area shape="poly" title=" " alt="" coords="115,53,193,32,194,37,116,58"/>
<area shape="rect" href="../../d6/d9a/uv__tcp__c_8cpp.html#a46dab202c98d614f23ca7d8ab95e3f76" title=" " alt="" coords="181,56,324,83"/>
<area shape="poly" title=" " alt="" coords="119,67,166,67,166,72,119,72"/>
<area shape="rect" href="../../db/d6e/class_c_u_v_client.html#a7367ec0e036e66075311573371038516" title="连接后调用这个函数" alt="" coords="167,107,339,133"/>
<area shape="poly" title=" " alt="" coords="116,81,186,100,184,105,115,86"/>
<area shape="rect" href="../../db/d6e/class_c_u_v_client.html#a85c74bb0d72542e0a710ac1f10e2640b" title="处理libuv的错误" alt="" coords="387,5,521,32"/>
<area shape="poly" title=" " alt="" coords="297,16,371,16,371,21,297,21"/>
</map>
</div>

</div>
</div>
<a id="a41d289fd0817e859b813822d4f9f940c" name="a41d289fd0817e859b813822d4f9f940c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41d289fd0817e859b813822d4f9f940c">&#9670;&#160;</a></span>on_uv_close()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void on_uv_close </td>
          <td>(</td>
          <td class="paramtype">uv_handle_t *</td>          <td class="paramname"><span class="paramname"><em>h</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>响应uv_close操作的回调函数。 </p>

<p class="definition">在文件 <a class="el" href="../../d6/d9a/uv__tcp__c_8cpp_source.html">uv_tcp_c.cpp</a> 第 <a class="el" href="../../d6/d9a/uv__tcp__c_8cpp_source.html#l00107">107</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d9a/uv__tcp__c_8cpp_a41d289fd0817e859b813822d4f9f940c_cgraph.png" border="0" usemap="#ad6/d9a/uv__tcp__c_8cpp_a41d289fd0817e859b813822d4f9f940c_cgraph" alt=""/></div>
<map name="ad6/d9a/uv__tcp__c_8cpp_a41d289fd0817e859b813822d4f9f940c_cgraph" id="ad6/d9a/uv__tcp__c_8cpp_a41d289fd0817e859b813822d4f9f940c_cgraph">
<area shape="rect" title="响应uv_close操作的回调函数。" alt="" coords="5,5,100,32"/>
<area shape="rect" href="../../db/d6e/class_c_u_v_client.html#a2f13c67e75922215b8e289de86ab3ad2" title="处理通道关闭" alt="" coords="148,5,291,32"/>
<area shape="poly" title=" " alt="" coords="100,16,132,16,132,21,100,21"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d9a/uv__tcp__c_8cpp_a41d289fd0817e859b813822d4f9f940c_icgraph.png" border="0" usemap="#ad6/d9a/uv__tcp__c_8cpp_a41d289fd0817e859b813822d4f9f940c_icgraph" alt=""/></div>
<map name="ad6/d9a/uv__tcp__c_8cpp_a41d289fd0817e859b813822d4f9f940c_icgraph" id="ad6/d9a/uv__tcp__c_8cpp_a41d289fd0817e859b813822d4f9f940c_icgraph">
<area shape="rect" title="响应uv_close操作的回调函数。" alt="" coords="180,5,274,32"/>
<area shape="rect" href="../../db/d6e/class_c_u_v_client.html#aebd24a8632f21e89f7bdb2946c5c1d3e" title="断开连接" alt="" coords="5,5,132,32"/>
<area shape="poly" title=" " alt="" coords="164,21,132,21,132,16,164,16"/>
</map>
</div>

</div>
</div>
<a id="a26cdfb66bef995e16bf2a18b2ae67717" name="a26cdfb66bef995e16bf2a18b2ae67717"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26cdfb66bef995e16bf2a18b2ae67717">&#9670;&#160;</a></span>on_write_cb()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void on_write_cb </td>
          <td>(</td>
          <td class="paramtype">uv_write_t *</td>          <td class="paramname"><span class="paramname"><em>req</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>status</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d6/d9a/uv__tcp__c_8cpp_source.html">uv_tcp_c.cpp</a> 第 <a class="el" href="../../d6/d9a/uv__tcp__c_8cpp_source.html#l00059">59</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d9a/uv__tcp__c_8cpp_a26cdfb66bef995e16bf2a18b2ae67717_cgraph.png" border="0" usemap="#ad6/d9a/uv__tcp__c_8cpp_a26cdfb66bef995e16bf2a18b2ae67717_cgraph" alt=""/></div>
<map name="ad6/d9a/uv__tcp__c_8cpp_a26cdfb66bef995e16bf2a18b2ae67717_cgraph" id="ad6/d9a/uv__tcp__c_8cpp_a26cdfb66bef995e16bf2a18b2ae67717_cgraph">
<area shape="rect" title=" " alt="" coords="5,31,97,57"/>
<area shape="rect" href="../../db/d6e/class_c_u_v_client.html#a85c74bb0d72542e0a710ac1f10e2640b" title="处理libuv的错误" alt="" coords="147,5,282,32"/>
<area shape="poly" title=" " alt="" coords="97,34,131,29,132,34,98,40"/>
<area shape="rect" href="../../db/d6e/class_c_u_v_client.html#a4429b8b21e1c6edf3780ac96dadb107a" title="完成发送后会调用这个函数" alt="" coords="145,56,284,83"/>
<area shape="poly" title=" " alt="" coords="98,48,130,54,129,59,97,54"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d9a/uv__tcp__c_8cpp_a26cdfb66bef995e16bf2a18b2ae67717_icgraph.png" border="0" usemap="#ad6/d9a/uv__tcp__c_8cpp_a26cdfb66bef995e16bf2a18b2ae67717_icgraph" alt=""/></div>
<map name="ad6/d9a/uv__tcp__c_8cpp_a26cdfb66bef995e16bf2a18b2ae67717_icgraph" id="ad6/d9a/uv__tcp__c_8cpp_a26cdfb66bef995e16bf2a18b2ae67717_icgraph">
<area shape="rect" title=" " alt="" coords="176,5,267,32"/>
<area shape="rect" href="../../db/d6e/class_c_u_v_client.html#a9fa40f908f40bc2fc0638ebce51cd220" title="发送数据。这个函数发送的时候不会将要发送的数据拷贝到缓冲区中 因此需要在具体应用的时候进行数据内存管理。" alt="" coords="5,5,128,32"/>
<area shape="poly" title=" " alt="" coords="160,21,128,21,128,16,160,16"/>
</map>
</div>

</div>
</div>
<a id="af0ab6a729b5504f44da7afda04e8ca72" name="af0ab6a729b5504f44da7afda04e8ca72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0ab6a729b5504f44da7afda04e8ca72">&#9670;&#160;</a></span>StartRebootTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void StartRebootTimer </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
